package com.ge.modules.dao;

import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.baomidou.mybatisplus.plugins.Page;
import com.ge.modules.entity.TbUser;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

/**
 * @author wuye
 */
@Mapper
@Repository
public interface TbUserDao extends BaseMapper<TbUser> {

    TbUser queryByMobile(String mobile);

    List<TbUser> queryPageList(Page<TbUser> pageUtil, Map<String, Object> map);

    /**
     * 查询用户列表
     */
    List<TbUser> queryList(Map<String, Object> map);

    TbUser selectByPrimaryKey(Integer userId);

    TbUser queryObject(Integer userId);

    int queryTotal(Map<String, Object> map);

    void save(TbUser user);

    void delete(Integer userId);

    void deleteBatch(Integer[] userIds);

    void update(TbUser tbyser);

    void updateByPrimaryKey(TbUser tbuser);
}